package ru.niir.goodfil.db;

import static ru.niir.goodfil.utils.Utils.s;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

@Entity
@Table(name = "`TextBlocks`")
public class TextBlock implements Serializable
{
    @Id
    @Column(name = "`Key`")
    private String key;

    @Column(name = "`Value`")
    private String value;

    @Column(name = "`Name`")
    private String name;

    public String getKey()
    {
        return key;
    }

    public void setKey(String key)
    {
        this.key = s(key);
    }

    public String getValue()
    {
        return value;
    }

    public void setValue(String value)
    {
        this.value = s(value);
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = s(name);
    }
}
